package com.ktgj.customer.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 会员权益对象 customer_rightdetail
 * 
 * @author ruoyi
 * @date 2021-07-30
 */
public class CustomerRightdetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long customerRightdetailId;

    /** 客户基本信息ID */
    @Excel(name = "客户基本信息ID")
    private Long customerId;

    /** 权益ID */
    @Excel(name = "权益ID")
    private Long rightdetailId;

    /** 权益名称 */
    @Excel(name = "权益名称")
    private String rightdetailName;

    /** 券金额 */
    @Excel(name = "券金额")
    private BigDecimal couponMoney;

    /** 生效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validDate;

    /** 失效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "失效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date invalidDate;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long createEmployeeId;

    /** 修改人 */
    @Excel(name = "修改人")
    private Long updateEmployeeId;

    /** 权益来源（卡、权益包） */
    @Excel(name = "权益来源（卡、权益包）")
    private String rightdetailSource;

    /** 会员卡id */
    @Excel(name = "会员卡id")
    private Long customerCardId;

    /** 子订单id */
    @Excel(name = "子订单id")
    private Long orderSubId;

    /** 权益类型 */
    @Excel(name = "权益类型")
    private String rightdetailType;

    /** 权益类型id */
    @Excel(name = "权益类型id")
    private Long rightdetailTypeid;

    /** 权益状态 */
    @Excel(name = "权益状态")
    private String rightdetailState;

    /** 权益即将到期提示 */
    @Excel(name = "权益状态")
    private String remaining;

    public String getRemaining() {
        return remaining;
    }

    public void setRemaining(String remaining) {
        this.remaining = remaining;
    }

    public Long getCustomerRightdetailId() {
        return customerRightdetailId;
    }

    public void setCustomerRightdetailId(Long customerRightdetailId) {
        this.customerRightdetailId = customerRightdetailId;
    }

    public void setCustomerId(Long customerId)
    {
        this.customerId = customerId;
    }

    public String getRightdetailSource() {
        return rightdetailSource;
    }

    public void setRightdetailSource(String rightdetailSource) {
        this.rightdetailSource = rightdetailSource;
    }

    public Long getCustomerId()
    {
        return customerId;
    }
    public void setRightdetailId(Long rightdetailId)
    {
        this.rightdetailId = rightdetailId;
    }

    public Long getRightdetailId()
    {
        return rightdetailId;
    }
    public void setRightdetailName(String rightdetailName)
    {
        this.rightdetailName = rightdetailName;
    }

    public String getRightdetailName()
    {
        return rightdetailName;
    }
    public void setCouponMoney(BigDecimal couponMoney)
    {
        this.couponMoney = couponMoney;
    }

    public BigDecimal getCouponMoney()
    {
        return couponMoney;
    }
    public void setValidDate(Date validDate)
    {
        this.validDate = validDate;
    }

    public Date getValidDate()
    {
        return validDate;
    }
    public void setInvalidDate(Date invalidDate)
    {
        this.invalidDate = invalidDate;
    }

    public Date getInvalidDate()
    {
        return invalidDate;
    }
    public void setCreateEmployeeId(Long createEmployeeId)
    {
        this.createEmployeeId = createEmployeeId;
    }

    public Long getCreateEmployeeId()
    {
        return createEmployeeId;
    }
    public void setUpdateEmployeeId(Long updateEmployeeId)
    {
        this.updateEmployeeId = updateEmployeeId;
    }

    public Long getUpdateEmployeeId()
    {
        return updateEmployeeId;
    }
    public void setCustomerCardId(Long customerCardId)
    {
        this.customerCardId = customerCardId;
    }

    public Long getCustomerCardId()
    {
        return customerCardId;
    }
    public void setRightdetailType(String rightdetailType)
    {
        this.rightdetailType = rightdetailType;
    }

    public String getRightdetailType()
    {
        return rightdetailType;
    }
    public void setRightdetailTypeid(Long rightdetailTypeid)
    {
        this.rightdetailTypeid = rightdetailTypeid;
    }

    public Long getRightdetailTypeid()
    {
        return rightdetailTypeid;
    }
    public void setRightdetailState(String rightdetailState)
    {
        this.rightdetailState = rightdetailState;
    }

    public String getRightdetailState()
    {
        return rightdetailState;
    }
    public void setOrderSubId(Long orderSubId)
    {
        this.orderSubId = orderSubId;
    }

    public Long getOrderSubId()
    {
        return orderSubId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("icustomerRightdetailD", getCustomerRightdetailId())
                .append("customerId", getCustomerId())
                .append("rightdetailId", getRightdetailId())
                .append("rightdetailName", getRightdetailName())
                .append("couponMoney", getCouponMoney())
                .append("validDate", getValidDate())
                .append("invalidDate", getInvalidDate())
                .append("createEmployeeId", getCreateEmployeeId())
                .append("createTime", getCreateTime())
                .append("updateEmployeeId", getUpdateEmployeeId())
                .append("updateTime", getUpdateTime())
                .append("customerCardId", getCustomerCardId())
                .append("rightdetailType", getRightdetailType())
                .append("rightdetailTypeid", getRightdetailTypeid())
                .append("rightdetailState", getRightdetailState())
                .append("orderSubId", getOrderSubId())
                .append("remaining", getRemaining())
                .toString();
    }
}
